package seven.test_7_15;

import java.util.Scanner;

public class TestMain2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long a = scanner.nextLong();
        long b = scanner.nextLong();
        long min = Math.min(a,b);
        long max = Math.max(a,b);
        for (int i = 1; i <= min; i++) {
            long tmp = max * i;
            if(tmp % min == 0) {
                System.out.println(tmp);
                return;
            }
        }
        System.out.println(min * max);
    }
}
